package com.cnbbx.cnbbx_web.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@Data
@ApiModel("错误")
public class JsonError {
    @ApiModelProperty(notes = "错误信息")
    String error;

    public JsonError(String error) {
        this.error = error;
        log.error(error);
    }
}
